package sketch;

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

/**
 * 
 * @author Indrojeet Mondal
 * @version 1.0
 *
 */
class AboutDialog extends JDialog
{
	public AboutDialog(JFrame parent)
	{
		super(parent, "About", true);
		
		setSize(300, 200);
		
		add(new JLabel(msg, JLabel.CENTER), BorderLayout.CENTER);
		
		JButton okBtn = new JButton("OK");
		okBtn.addActionListener(new ActionListener()
		{
			public void actionPerformed(ActionEvent e)
			{
				AboutDialog.this.setVisible(false);
			}
		});
		
		JPanel panel = new JPanel();
		panel.add(okBtn);
		
		add(panel, BorderLayout.SOUTH);
		
		//pack();
	}
	private static final String msg = "<html><h1>JGraphSketch 1.0</h1><br>" +
			"Copyright (c) Indrojeet Mondal<br>E-Mail: agraphplotter@gmail.com</center></html>";
}
